/// File: Robotics4.NET\RobletTest\TestRoblet.cs
/// 
/// ------------------------------------------------------------
/// Copyright (c) 2004
///   Antonio Cisternino (cisterni.unipi.it),
///   Diego Colombo      (colombod.unipi.it)
/// 
/// The use and distribution terms for this software are 
/// contained in the file named license.txt, which can be found 
/// in the root of this distribution.
/// By using this software in any fashion, you are agreeing to 
/// be bound by the terms of this license.
///
/// You must not remove this notice, or any other, from this
/// software.
/// ------------------------------------------------------------

using System;
using System.Xml;
using Robotics4.NET;

namespace RobletTest
{

	public class Beat : RobletMessage
	{
		public long tick = DateTime.Now.Ticks;
	}

	/// <summary>
	/// Summary description for Class1.
	/// </summary>
	[OutputMessage(typeof(Beat))]
	public class FuffaRoblet : RobletBase
	{
		public const string RobletName = "FuffaRoblet";
		public FuffaRoblet() : base(RobletName) {}


        protected override void Initialize()
        {
			Frequency = 1;
        }


        protected override void Run()
		{
			SendState(new Beat());		
		}


		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main(string[] args)
		{
			RobletBroker.Start();
			Console.ReadLine();
		}
	}
}
